package com.mySchool.entity.PO;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.*;
import lombok.*;

import javax.persistence.Column;
import java.time.LocalDateTime;

/**
 * @author sky
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "省份信息实体类")
@TableName("province")  //对应的表名
public class ProvincePO {

    @TableId(type = IdType.AUTO)   //对应的主键
    private Long provinceId;

    @Schema(description = "省份名称")
    @TableField("province_name")
    private String provinceName;

    private int population;


    @Column(name = "gmt_create")
    private LocalDateTime gmtCreate;

    @Column(name = "gmt_modified")
    private LocalDateTime gmtModified;

    @Column(name = "version")
    private Long version;
}